package cn.com.cifi.mars.constant;
/**
 * 
 * @author 60157
 *
 */
public enum UserTypeEunm {
	
	E1("E1","内部用户"),
	E2("E2","编外员工"),
	O1("O1","外部用户"),
	O2("O2","外部合作人员"),
	O3("O3","供应商人员"),
	O4("O4","代理商人员"),
    ;

    private String key;
    private String value;

    UserTypeEunm(String key,String value) {
        this.key = key;
        this.value = value;
    }


    public static String getValueByKey(String key){
        for(UserTypeEunm versionTypeEunm:UserTypeEunm.values()){
            if(key.equals(versionTypeEunm.getKey())){
                return versionTypeEunm.getValue();
            }
        }
        return  null;
    }

    /**
     * @return the key
     */
    public String getKey() {
        return key;
    }

    /**
     * @return the value
     */
    public String getValue() {
        return value;
    }

}
